#ifndef EDITORCORE_SELECTACTION_H
#define EDITORCORE_SELECTACTION_H

#include "EditorCore/Actions/Action.h"
#include "EditorCore/IEntity.h"
#include "EditorCore/Selector.h"

namespace editor_core {

	class SelectAction : public Action
	{
	public:
		SelectAction( Selector* selector, IEntity* entity );
		virtual ~SelectAction();

		virtual inline ActionType GetType() const { return ActionType::Undoable; }

	protected:
		virtual bool Commit();
		virtual void Recommit();
		virtual void Rollback();

	private:
		IEntity* m_entity;
		IEntity* m_previouslySelectedEntity;
		Selector* m_selector;
	};
}

#endif
